package com.wang.springbootinit.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

import java.util.Date;

@TableName(value ="chat_history")
@Data
public class ChatHistory implements Serializable{
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会话id
     */
    private String conversationId;


    /**
     * 聊天记录
     */
    private String chatInfo;

    /**
     * 聊天主体【USER，AI】
     */
    private String chatUserType;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 用户id
     */
//    @TableField(value = "user_id")
    private Long userId;

    /**
     * 0-未删除 1-已删除
     */
//    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
//    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
//    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
